<?php
	unset($subMenu);
	$subMenu = array();
	switch($page) {
		case 'myReserves':
			$subMenu[] = '<a href="index.php" class="firstLink"> Home</a>';
		
			if($u->getRole() >= $g_permission['instructor']) {
				$subMenu[] = '<a href="index.php?cmd=createClass">Create New Class</a>';
				$subMenu[] = '<a href="index.php?cmd=importClass">Reactivate Class</a>';
			}
			if($u->getRole() >= $g_permission['proxy']) {
				$subMenu[] = '<a href="index.php?cmd=exportClass">Export Class</a>';
				$subMenu[] = '<a href="index.php?cmd=editClass&amp;tab=enrollment">Manage Class Enrollment</a>';
			}
			if($u->getRole() <= $g_permission['proxy']) {
				$subMenu[] = '<a href="index.php?cmd=addClass">Join Class</a>';
				$subMenu[] = '<a href="index.php?cmd=removeClass">Leave Class</a>';
			}
		break;
	}
?>
	<div id="subnav">
		<div class="navItems">
			<ul>	
<?php	foreach($subMenu as $sm_link): ?>
				<li><?=$sm_link?></li>
<?php	endforeach; ?>
			</ul>
		</div>
		<div class="user">
			<?=$u->getName(false);?> ( <?=$u->getUsername()?> )
		</div>
    </div>


